import request from '@/utils/request'

//商城管理-品牌制造商列表
export function listBrand(query){
    return request({
        url: '/brand/list',
        method: 'get',
        params: query
    })
}

//商城管理-新增品牌制造商
export function createBrand(data){
    return request({
        url: '/brand/create',
        method: 'post',
        data
    })
}

//商城管理-修改品牌制造商
export function updateBrand(data){
    return request({
        url: '/brand/update',
        method: 'post',
        data
    })
}

//商城管理-删除品牌制造商
export function deleteBrand(data){
    return request({
        url: '/brand/delete',
        method: 'post',
        data
    })
}


// 上传路径常量
const uploadPath = process.env.BASE_API + '/storage/create'
export { uploadPath }